namespace Brjnk.GpxExplorer.Workspace
{
    using Brjnk.Common;
    using Brjnk.GpxExplorer.ViewModel;

    /// <summary>
    /// </summary>
    public class NamedPosition : IPoint, INamed
    {
        private GpsCoordinates position;
        private string name;

        public NamedPosition(string name, GpsCoordinates position)
        {
            this.name = name;
            this.position = position;
        }

        public Common.GpsCoordinates GetPos()
        {
            return position;
        }

        public override string ToString()
        {
            return name;
        }

        public GpsCoordinates Position
        { get { return position; } }

        public GpsCoordinates PositionI
        { get { return position; } }

        public string NameI
        { get { return name; } }

        public string Name
        { get { return name; } }
    }
}